[TextEditor] Fixed unit tests.