expand the error code enumeration and fix last test to check for missing data