Add test fixture to disable JVM shutdown hook registration