added a test suites for template.
made parentTemplate an array; addParent to add parent stack.
tested the new addParent feature.