some unit tests for the TwigExtension along with some cosmetics