add test for image upload