Fix warning in tests.