Implemented the getTemplateName helper method and added Unit test for it

Issue #385 - User templates can no longer get templateName

- Implemented templateName helper method.
- Added Unit Test for templateName method.