Added a few unit tests for htmlWriter.