test for chunked data.
Add more conversion functions.
Support receiving chunked data.