added test cases for uploading image