Template Service unit tests

Template Service unit tests