added in test for api metrics