Fix test so it doesn't fail on deprecation warnings.