ADD: testcases for the templates.