Reduce warnings in tests.