Added some unit tests to Messenger