Disable deprecation warnings in tests.