Add test for cmd_add_command.