fix the metric test case bug