Testing for what the anticipated max number is in the error message (e.g., err.msg.indexOf('100000')) could be a good way to ensure we keep the error messages updated when the specs change over time.