fix chunk header parse bug, add utest for basic/message header