added test for search