Making the invocation explicit should allow testing without actually starting the process fromt the command line. Also returning a promise allows chaining of commands for testing and verification.
The REST API tests are now located under the maxctrl directory. This allows both tests to use the same framework for testing.