Add tests for dispatch, unknown command, and returned exit codes.
Add tests for dispatch, unknown command, and returned exit codes.