Silence deprecation warnings in test suite.