variable-global-scope: revised test case to use standars-compliant code