V3:
Implement the getTemplateName helper method and add Unit test for it