removed a useless variable assignment in a test
updated the Twig extension to use Twig_SimpleFilter and Twig_SimpleFunction