Fix tests and add 'ENOTFOUND' to default errorCodes.