Fix tests on Rubinius
Fix tests on JRuby and MRI 2.1.0.dev