#143: Implement tests (introduce test/test-command-editor.js)