tests for metrics