Update test case and doc to use proper signature of error event