MDL-40493 editors: unit tests for editor_get_preferred_editor