#1125 Add tests for upload image from stream