CLI: Create `CombCli` class to make code testable

Add tests for `cli.js`