Fix jvm selection on test clone