Added parse error tests.
Fixes for PI tests.