Enhancements for sub-assemblies, separate templates and updated tests

typo