search: add test case with a repo
Created by: ijsnow
This commit adds a test case to the search test that contains a mocked repo. It still doesn't fetch results but it adds more scaffolding that will be necessary to execute real tests.
Just doing some more investigating/experimenting on what we'll need to start writing real test cases for this and noticed some failures without these additional mocks.
Test plan: The test passes.