Make tests pass on Ruby 1.8

Query params ordering seems to be unpredictable, most likely due to Ruby 1.8's
unordered hash.