Fix metric tests.