Fixed specs on JRuby