Fix broken test in Ruby 1.9.2