TemplateEditCtrl JS tests