Fix test for metrics endpoint output.