Updated metric module tests to verify the correct results are returned in the http response