fix test failures in renderer test on Ruby 1.8