extend chunked encoding tests and fix chunked encoding reader