tests/parsetext.cpp: make text_reader expose the data it matches