implemented global keyword support in test phase