Added test for global variables