[Tests] Fixed text editor tests.