Overwrite deprecate in tests to avoid passing warnings to the console