Adding test case for query provided as Hash instead of String

This is for branch 1.4, not master, However, my git foobar is not good enough.

Extra tests using query provided as a Hash.