Added some unit tests about TemplateProxy