Write tests for template updates