more testing added against the error function