Add ScopeTreeTest