Added test for Image::preUpload() method