Add test for search_controller