added testing for search functionality