Test for globals with typeof / undefined