Minor refactor of tests
Fixed delete inner quote bug

The quoted string code wasn't properly handling the case where the caret
was positioned on a quote character.  Changed it match the vim logic

closes #960