add some tests in upload.