Trooper accused of withholding body-camera video agrees to testify in deadly arrest