Fixed issue with recognizing parse errors.  Added tests.