Update tests, backport GzipFile for 2.6