CLN: do not read and write twice in a parser test