Add test for templates.