test for RemoveNamespaces