REFACTOR: Some qunit `module` imports were missing (PR #10852)

These are tricky because module.exports is used by nodejs files as a global, which is OK. But we don’t want to allow module in JS tests for qunit without importing it first.

GitHub