Fix test failure for ruby 1.8.

BigDecimal.new needs to take a string rather than an integer in ruby 1.8.
Merge pull request #9224 from dylanahsmith/bigdecimal-takes-string

[3.2] Fix test failure for ruby 1.8.