tests textiter: unit tests for visible word boundaries

As the FIXME comments show, there are several problems.