[V2] prevent tests fail on Ruby 1.9

squashed #275.