Add tests for swig.run
remove unnecessary parsing from autoescape tag
increase some test coverage