Fix Global's API test.

When using strict mode, this is not always defined properly. This just
uses `window`.