write searchService tests