updated unittest in accordance with latest branch library code
TODO: Debug Test_EncodeMetricDateTime
unittest work in progress