parser unit tests including error conditions