test: minor fixes to test-module-loading.js
Use block scope for local variables only used in a small code block. Fixed inverse arguments in some usages of Assert.strictEqual.
Checklist
-
make -j4 test
(UNIX), orvcbuild test
(Windows) passes -
commit message follows commit guidelines