Addition sanitise test
Don't let editing document text mess up offsets.