test for SearchController