Command architected refactoring

Added tests for commands under the new architecture
Bugfix: MultiNodeEditor - crashes when caret leaves terminal