mocked search function