Add AST testing infrastructure
Fix #308: Port final tests for JSExport