Add test for uploading image