Adding test case for query provided as Hash instead of String