add unit test for gzip middleware

case where gzip is disabled.