Fix specs for JRuby