Add more unit tests for editor.py.