Fixes undefined constant Deprecation in tests.