Unit tests added for template structure