fixed test_cmd_line