AST to string tests for parser.