add access to exceptions and tests for ParseErrors