Improve tests.
Add tests and documentation for HTML support.