Added module context tests to ensure globals are available.
Adding additional check for global object in isolate context.