Added some more junit tests for messenger.