Fix buffer overflow in hl-msg unit test.