Reverted the test case for Template to reflect the removal of DOMDocument usage