adds tests for SearchController