test: add workaround for JRuby