[impact] Limit available functions in jinja environment
[minor] fixed testcase