(pup-954) Fix failing test for Ruby 1.8.7 (hash entry order)

One test relied on the order of hash elements which Ruby 1.8.7 does not
guarantee.