codeeditor: making test less brittle