Fix failing TextEditorTest