Is this how you do it? I don't know much about unit testing, so this might be perfectly fine. But I would expect the plugin syntax to compare to HTML output... (I can see how this way makes it independent from a renderer, though.)