TemplateService unit tests