Checking `global` variable instead of `process` for better coverage.