The test fails because Shenandoah support in jdk11 has been introduced in a different way than for later releases.
I.e. in jdk11u the option UseShenandoahGC is not even available if the VM has not been built without Shenandoah. Such a VM prints "Unrecognized VM option 'UseShenandoahGC'", while in later jdks, when built without Shenandoah (or any different GC) the VM prints "Option -XX:+UseShenandoahGC not supported".
I.e. the test code fails because with jdk11u "isShenandoahGCon" will be null because the VM does not even know the flag, while in later jdks "isShenandoahGCon" will be false as the VM knows the flag.
So in jdk11 a NullPointerException is thrown at TestDriver.java:84 because isShenandoahGCon is null.
In any case the test should use the API from sun.hotspot.gc.GC to detect GC presence in all jdk versions, as it returns true/false always.