Add HTMLTidy to tidy up HTML after compilation.
Add slightly more extensive tests.