Assert on errors in example test