add comments of message array, add utest.