Added unit tests for namespace resolution.
Fixed namespace resolution to use the full path of the namespace.