Fix test for search controller