Unit test added for Lua message write/read.