Add tests for Upload.