Handle deprecation warning in tests.