metrics tests fix