Unit testing for search methods