Unzip fix

Sorry to do this, but there's a bug in the download code that might manifest itself intermittently: the unzip event fires upon the end of data transmission, not the end of writing to disk. As a result, the file can be incompletely written when it is passed to `unzip`, producing errors.

I also fixed a minor `package.json` error that made it harder to run tests than it should have been.