TemplateDuplicateCtrl JS testing