xtemplate tests