Add method renderTemplate() [Tests]