AST to XML tests.