tests/parsetext: simplify the usage of cainteoir::document