Tests should preserve doctype.

Also:
- Update mocha to use dot reporter.
- Undo trim_trailing_whitespace changes.