tests textiter: unit tests for cursor positions

See the FIXME comment.

https://bugzilla.gnome.org/show_bug.cgi?id=618852