Fix Ruby 1.8 compatibility in the test suite.