Add test for resolving nested types with namespaces