fixed test for search