Add test for template rendering