add functional test for Search api