Twig extension unit test