This action was brought by the defendant in error against the plaintiff in error, in the late district court of Iowa county, to recover a sum of money alleged to have been collected by him as the attorney of the defendant in error. The parties having waived a jury, the case was tried by the judge. The errors relied on by the plaintiff in error, to reverse the judgment, appear in the assignment of errors, which *83is as follows : 1. The court erred in refusing to exclude the evidence of the witness, James H. Gentry, and in receiving the same after his interest had been shown. 2. The court erred in rendering judgment against the plaintiff on the proofs presented. 3. The judgment of the court was contrary to law and the evidence in the case.
The bill of exceptions shows, that on the trial the witness, Gentiy, was called upon to testify on the part of the defendant in error, and objected to by the plaintiff in error on the ground of interest. To prove his interest, the plaintiff in error produced an execution issued on a judgment recovered in the district court of Iowa county, at a previous term, in favor of the defendant in error against one Peter Perry, on which there was an indorsement by the witness (who, at the time of maldng it, was the sheriff of Iowa county), in the following words: “I have the sum named in the within writ, to render unto Stephen Gentle as within I am commanded.
JAMES H. GENTRY, '
April 2, 1838. Sheriff.”
The judge who tried the cause being of the opinion that the proof adduced did not establish such an interest in the witness as ought to exclude him, permitted him to testify. He testified that a few days after the indorsement was made on the execution, he paid the amount collected to the plaintiff in error as the attorney of the defendant in error, with the exception of $14, for which he had an order from the defendant in error for money due the witness, which order was paid and allowed by Eaton as attorney of Gentle.
It is insisted by the plaintiff in error, that the witness had a direct interest in favor of the plaintiff below, inasmuch as, if a judgment was obtained against Eaton in the suit, the witness would be discharged from his liability to pay to Gentle the money collected for him on the execution.
The general doctrine on the subject, as understood by the court is, that when a witness has a direct and immediate *84interest in the event of the suit he is excluded, if called upon to testify in favor of his interest.
The true test of the interest of a witness is, that he will either gain or lose by the direct legal operation and effect of the judgment, or that the record will be legal evidence for or against him in some other action. 1 Greenl. on Ev. § 390. To this rule there axe many exceptions. It does not extend to agents, carriers, factors, brokers or other servants, when offered to prove any acts done within the scope of their employment. Thus, a clerk who has received money is a competent witness for the party who paid it, to prove the payment, though he is himself liable on the receipt of it. Mathews v. Hayden, 2 Esp. 509. A factor who sells for the plaintiff, and is to have a percentage on the amount, is a competent witness to prove the contract of sale. .8 Barn. & Cress. 407. The exception extends in principle to every species of agency or intervention by which business is transacted.
Is the witness Gentry within the rule or the exception ? He had an execution in his hands, as the sheriff of Iowa county, against the property of Perry, and by the indorsement on the back of it the collection of the money by him was clearly established — and if the plaintiff below prevails in the action, the liability of Gentry to pay the money over to the plaintiff below will be extinguished. By his return on the execution, his liability to the plaintiff below, for the amount of the execution, was clearly proved; and to permit him to testify, it is said, will violate the well-settled rule governing cases of this kind.
But we are of opinion that the case falls within the exception. Gentry, the witness, was the sheriff of Iowa county, and it was his duty to pay the money over to the person entitled to receive it after its collection; and the plaintiff in error, as the attorney of Gentle, was the proper person to whom to pay it. The sheriff may be considered as the agent *85of the plaintiff below, for the purpose of collecting the money and paying it over to him or his attorney in the suit; and the payment testified to by the witness, was a payment in the ordinary course of his business or employment.
The other errors assigned are all similar and may be considered together: they allege substantially that the court erred in rendering judgment against the plaintiff in error, for the reason that it was against the law and the evidence in the case. The bill of exceptions states that a witness by the name of Moses Whitesides was introduced by the plaintiff below, who testified that, some two or three years before, he called upon the plaintiff in error, at the request of Charles Tracy (for whose use the suit was brought), for the money collected on the judgment and execution alluded to ; that the plaintiff in error appeared to be dissatisfied with the conduct of Tracy, but said nothing which can be construed into a denial of the fact testified to by Gentry. It was stated in the argument of the counsel for the plaintiff in error, that he could not be charged in this action without proof of a demand upon him for the money which he had received as the attorney of the defendant in error, and it was for an alleged failure in the proof to establish the fact of a demand, that the counsel contended that the proof was not sufficient to justify the decision of the judge on the question of fact submitted to him.
Generally, an action cannot be maintained against an attorney for money collected by Mm for his client, without proof of a demand and refusal to deliver it, or of a conversion of it by the attorney. But we think that the testimony of WMtesides establishes the fact of a demand upon the plaintiff in error, and that the decision of the judge was correct upon the question submitted to him.
Judgment affirmed, with costs and ten per cent, damages.