message unit tests