Added facilities for #245: testing upload of files to a server