added unit test for search query