Event test coverage (messages)

WIP, opening this to start discussion.
Yeah, I just didn't realise I had to define them as globals to use them. Not sure I like relying on globals, but ho hum. See https://github.com/candy-chat/candy/commit/1ff0aa50a84bee654498e5cdecc05b03e68ea239