Resumable upload fixes and tests