fix metrics tests