Added subtemplate test