Fixed a bug with queries

The maximum infraction was not being sent for all queries tests.
Merge pull request #1192 from TechEmpower/fixQueries

Fixed a bug with queries