update tests
fix bug when moving to enclosing scope symbol table