Added new tests for foster parenting in template, after after frameset a...

...nd parsing fragment in html context.