adapt pattern, generator and test namespaces