added tests for MetricsUtils