Add test cases for image uploader