Fix failing test on Ruby 1.8.x