Added some tests for twig extension

Since I added some stuff there in previous commits, some tests would  be nice