Tests for upload