Test zlib for bad input and writing after close has been called.

Test for bad input on gunzip

Test zlib write after close