Fix test failure on Ruby 1.8.7

Hashes are unordered on Ruby 1.8