Issue #216: add tests for `register` and `unregister` commands