(1) subpoenaed to appear as a witness or to produce books and records before a military court or before any military or civil officer designated to take a deposition to be read in evidence before the court; and
(2) paid or tendered the fees and mileage of a witness at the rates allowed to witnesses attending the district courts of the state.