add lexical scope testcase