Test code for templates