Use same finished() check for gzip and non-gzip
More debugging
New gzip test