Event test coverage (messages)

WIP, opening this to start discussion.
ah, sure yeah. You're right. Don't remember why I did it there even.. probably to prevent parsing the stuff when xhtml is not enabled anyway. But I think this is ok like this.