Added unit test for TimeMetric.