use ordered hash to fix tests on ruby 1.8