skip the test for gzip type column if zlib extensions is missing (fixes #3471, BP from 3447)

skip the test for gzip type column if zlib extensions is missing (fixes #3471, BP from 3447)

(cherry picked from commit 3743686e4c0cae0afa4d9d130fa3639f9aaf9488)