Fix deflate and zlib tests

Fixes #7 and closes #8.