add test for upload