added tests for metrics