Add global commands to the runner.

- Use a hash to lookup for commands.
- Add more tests for the command and runner execution.