A man who says he had an affair with Nancy Cooper testified Tuesday as part of defense attorneys' attempts to discredit Cary police.