Ensure disabled deprecation warnings are re-enabled before next test