Additional Test case for queries