Resumable download tests and fixes