Make tests work in Ruby 1.8