Start to add tests for CLI.