Fixed run_cmd tests