Ignore deprecation warnings during tests