test and search