Test for search works