IR: Added globals
Test: added test to test globals (initialization and such)