added adebug message
added tests for gzip error cases