Tests: refactor zip tests a bit.

We'll need the same thing for ole2 and tar.