Test for setUpTemplates function