refactor namespaces test fix