add test to image upload