test: allow leaked global check to be skipped
This simplifies the process of running tests on different versions of Node, which might have a different set of global variables.
Checklist
-
make -j4 test
(UNIX), orvcbuild test
(Windows) passes -
tests and/or benchmarks are included -
commit message follows commit guidelines