add unit test for MetricExpressionParser