refactored twig renderer & acceptance tests