Altered the way globals are added to the Jinja2 env, fixed test