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