tests textiter: test forward_word_end() and backward_word_start()

At the start and end of the buffer it's difficult to know the correct
behavior. There is maybe a bug somewhere, or the functions should be
better documented.