Tests for custom Syntax Error handling

Follow-up to #26.