Add test for name scoping