Test cases for file upload.