addError call matches unittest api