Fix to make tests pass in Ruby 1.9.3