Assert on error in example test