Repository lookups were stubbed in the controller test so the search route could be checked without a database. Matching across list implementations worked, and those tests passed.
- What worked
- Stubbing the lookup and returning the same entity instance kept the controller test small and stable.