scope test for Global variable and Local variable