improve body length counter
add short_message to packing test
add unpacking test