complex workflow definition with choice, added case in
TemplateServiceTest