Add a functional test for search service.