Add ParsingError tests.

Fixes #271.