Added a regression test for checking allocation of globals.