Added tests for processTemplates