Adapt test for RT #122746
(was failing for rakudo.jvm)