fix metrics test