Add failing doctest syntax test
Fix crash when no "offset" in doctest syntax error