fix test for Ruby 1.8.7

Somehow, the XML attribute order in 1.8.7 is different.
Found no other way than using this Regex to make it pass.