needs better mocks for search