fix Ruby 1.8.7 tests

[#66601646]