#1125 Add tests for upload file with stream