I think `Content-Encoding` and `Content-Type` assertions must happen _after_ the response is processed by `process_response` hook.