fix the error test