Suppress deprecation warnings in tests