I ran it now successfully and it helped to pinpoint a libssh2 memory leak!
reproduce the --ftp-create-dirs problem reported by Brian Ulm, but that seems to need a call curl_easy_reset() which this test case doesn't do.