TEST: added tests for metrics module