Write test for SearchService