fix missed unset global var; refact var name. #30
improve test case, if found unexpected global var fail test #30