Added a test for resource_upload.