TC: added tt var 'template_name' (top-level template name)