improving test_metricValue and metricValue.