Added more unit tests for the twig extension