support ncm-metaconfig based on TextRender 

Additional fixes and unittests to allow ncm-metaconfig based on CAF::TextRender