add xml ITemplateResolver to template engine
add template test