Make the specs pass in JRuby