messages unit tests