Add failing doctest syntax test
Fix crash when no "offset" in doctest syntax error
Merge pull request #19 from laurentb/doctest-fix