add test case for gzip compression
add documentation of compression