Fixes RT#54731 (conditional skip test from within the POD)