Fixed error when running tests from gzip package