Fixed bug with template not properly removing unused tags, updated template test to pass template path through constructor.