Added TemplatedParent tests.

To confirm that TemplatedParent is set on the whole templated tree, not
just the root element.