Add AST testing infrastructure
Fix #308: Port final tests for JSExport
Merge pull request #388 from gzm0/ast-tests

Ast tests