tests: disable deprecation warnings for tests