Adapted test case for Ruby 1.8