implementation and tests of namespaced composites