fix test_upload