Fix zip download

Correctly extracts files download in a zip. Also includes test for upload and download of zip.