Fix unittests that use chunked encoding.