Added htmlStatement() method and test for it.