Fix functional test_cli