adding test for template