remove settings before instead after each test
updated the Twig extension to use Twig_SimpleFilter and Twig_SimpleFunction