Add tests for modifying the editor