small change to the create_namespace method, add more thorough testing
for namespaces.