fix Metrics test