Introduce and use test_cmp_text