receive-gzip implementation complete with working test