added unit test for twig renderer

verify #1755 works