Test added for better error message when missing end quote. Closes #802.