Add missing test for deprecation warning