add test for new search algorithm