Unit test for SearchController