Created test class, code works end-to-end but does not emit correct
html.

Please check out, fix your code.