Ignore deprecation warnings in tests.