Fix JRuby tests