Update deprecation warning test