fix test in JRuby