added test for custom search query