enhanced scope tests.
Now scope is being used for naming but not yet for lookup of types in the scope.