test: do not swallow uncaughtException errors in exit code tests
cannot use node:assert
module in cases where uncaughtException
handler is registered as an failure will be eaten by it
to that point: zeroExitWithUncaughtHandler had partially wrong values and i've updated it along with the patch.