Fix expected value of error case