Added unit test for the twig extension