add test case for image upload