Suppress deprecation warnings in test