also test for correct deprecation warning