Fixed the metrics test case.