First full doc test
Quick refactor of test helper
Tidy test
Fix issue with headers in "none" state
Fix spurious paragraph opening
Fix hyperlinks not creating paragraphs.
New doc tests