add pendantic error tests