Increase test coverage for Cmd.