Add more tests for paragraphs and headings with extra spacing

Change-Id: Ic39fc0972bc25f0377720f82b642007ea0a208a0
Merge "Add more tests for paragraphs and headings with extra spacing"