add test for search

write test case for server