Added test to make sure that a query is passed to search