Add test cases for the image uploader