Use `expectDeprecation` helper in lookup tests