In the process I had to refactor some methods which required the mock connection of tests to be changed as well.
Couldn't handle messages with no "from" attribute. Some refactoring to add code that checks if a messages is a headline to the utils module. Updated tests. Add sinon so that we can test returned value of spy.