Add test_upload_image function