updating data criteira test to be an error istead of a warnoing