This tests for a bug where inserting at the end of a link would place content in the wrong paragraph.