Removing unnecessary wrapping into QueryHash in test