TODO: Debug Test_EncodeMetricDateTime
update of code before another crash of IDE occurs
unittest work in progress