Currently node/interfaces.cpp uses a mix of gArgs vs m_context->args. This is fine, because outside of tests those should be identical. However, it makes the code inconsistent and harder to use in tests.
Fix that by using args from the context consistently. Do the same in init.cpp, where gArgs and args are inconsistently used in the same scope or even line.