Fix assertion for _uploadChunk. Add new tests for _verifyAllChunksUploaded