Fix test_templates.