Resolve test failure caused by missing OpenStruct#each_pair on ruby 1.9.3