Fix test failures on Ruby 2.2.0-preview1