Well part of the function's job is to wrap the text in certain HTML. Shouldn't we check that it is doing it's job correctly?

I always feel weird about testing stuff like this. It means that when we want to change the wrapping HTML we have to do it in 2 places now (the original code, and the test).