add test code for upload file