Fixed the dumping of all metrics in the testcases.