Give "downloadFileTest" better debug output, fix linking problem.