implement addHeader method
fix message decoding for chunked messages
add test case for decoding a chunked message