Use Ruby 1.8 compatible syntax to run tests on Ruby 1.8