[cli-test] using run_process instead of sys.command