Fixed test error in ruby 1.9.3