test search functionality