[feature/twig] Fix template_test.php

Various tests were broken completely, and some things such as whitespace
changed with Twig

PHPBB3-11598