refs #25: added a test showing that inserted text in lists is still broken
refs #25: refactor and fixed inserted text in lists