added reproduction code for Ruby 1.8.7 issue