add test for search