added tag support for installTemplate() and completed unit tests