delivered the opinion of the court.
The record shows that in 1857 John B. Davis sold and conveyed to one Printz a tract of land in Montgomery county, for $3,800, and, to secure the purchase money in three equal payments, Printz gave his notes to Davis and executed a deed of trust on the land sold, to one David Thomas, as trustee. In 1859 Davis died, leaving Thomas his executor; and afterward Thomas, as trustee in the deed, proceeded and sold the land under the terms of the deed of trust; and Joseph Davis, who is the defendant in this suit and also a son of John B. Davis, bought it and received a deed therefor.
Joseph Davis, the purchaser, brought an action of ejectment against Looker, the plaintiff in this suit, for the possession of the land, and Looker instituted this proceeding in the nature of a bill in equity to enjoin Davis from further prosecuting his *144'action in ejectment and to set aside the trustee’s deed from Thomas to Davis.
In his petition the plaintiff, after reciting the facts of sale as above set forth, says that Printz took possession of the land under the conveyance from Davis, but ascertaining that he would not be able to pay the consideration, or for some other cause, it was agreed by and between the said John B. Davis and the said Printz that upon the execution of a deed by Printz and wife, by which they would convey the land to plaintiff, who was Davis’ son-in-law, he (Davis) would cancel the indebtedness of Printz to him for the land and release him from the payment thereof; whereupon Printz and his wife, by their deed, did convey the same to plaintiff, and Davis did cancel the said indebtedness and release Printz from the payment thereof. Plaintiff states that in consideration of the said conveyance he paid to the said John B. Davis the sum of $2,000 and took possession of the land, and now holds the same. There is also an averment that the defendant, Joseph Davis, when he bought the land at the trustee’s sale, had full notice of these facts and knew that Printz’s notes were canceled and discharged, and that nothing was due on them.
The answers of both the defendants, Davis and Thomas, admit that a contract was made between John B. Davis, during his lifetime, and Printz, that Printz’s notes should be surrendered to him when Looker executed his own notes in lieu thereof; but this they say was not done, and the arrangement failed, and Printz’s notes therefore remained in fall force.
Upon a hearing the court decreed an injunction. During the trial of the cause Looker introduced himself as a witness, and gave testimony which was objected to by the defendants, and the question of his competency is really the only matter in the case requiring serious consideration.
That the court made up issues of fact and submitted them to be passed upon by a jury, is not objectionable. It is permissible for a chancellor in his sound discretion to frame issues and take the opinion of a jury for his guidance; and where this power is not abused or wrongfully exercised, it will not be interfered with. The statute provides that in issues peculiarly triable by the court, *145the court may take the opinion of a jury upon any specific question of fact by an issue made up and framed for that purpose. (Wagn. Stat. 1041, § 18.)
It is insisted by the appellants that Looker’s evidence was inadmissible because he was a party to the agreement between Davis and Printz, and that Davis is now dead. The statute allowing parties to be witnesses on their own behalf makes this exception, namely: “ Provided, that in actions where one of the original parties to the contract or cause of action in issue and on trial, is dead, or is shown to the court to be insane, the other party shall not be admitted to testify in his own favor.” (Wagn. Stat. 1872, § 1.)
It will be perceived that the proviso relates wholly to persons who are parties to the suit, the issue arising in which is on trial, and not to others who were merely parties to the original contract. The object and purpose of the statute was undoubtedly to put the two parties to a suit upon terms of substantial equality in regard to the opportunity of giving testimony.
The proposition may be taken as a general one, therefore, that where parties have contracted with each other, each may be supposed to have an equal knowledge of the transaction, and both, if living and sane, are allowed to testify. But if one is precluded by death or insanity, the other is not entitled to the undue advantage of being a witness in his own case. But the test of competency is “ the contract or cause of action in issue and on trial not the fact to which the party is called to testify. If the cause of action was a matter transacted with a person who has deceased, the other party to that transaction, being also a party to the suit, is not admitted as a witness at all, and can not testify to any fact in the case. (Granger v. Bassett, 98 Mass. 462.)
Can it be said that there is any contract between Looker and the deceased, John B. Davis, in issue and on trial in this suit? If any contract of the deceased is drawn in issue it is the agreement he made with Printz to release him from the notes, provided he (Printz) would convey the land to Looker. This was a contract between Printz and the deceased Davis. If Davis ordered Printz to make a deed to Looker, and, on doing so, he was to be released *146from the payment of the notes, it does not affect the contract, whether Looker did what he agreed to do or not.
That the order was given is conclusively established, for the record contains the written request of John B. Davis authorizing and requiring Printz to make the deed and convey the land to Looker, together with a receipt by Looker acknowledging that he had received the deed. The deed itself is also in evidence. It is immaterial whether Davis and Looker had a contract about the land or not. No such contract necessarily arose as an issue in this case.
It must be borne in mind that this is a suit between Looker and Joseph Davis and Thomas, and that neither John B. Davis nor his estate is a party to it or concerned in it. The deed was ¡made by Printz to Looker upon the direct and peremptory order of John B. Davis, and upon an issue between the estate and Looker as to whether he had ever complied with his undertaking or paid the consideration. Looker’s testimony would obviously be excluded for the reason that Davis being dead he would be unable to oppose his testimony to that of the living witness, and Looker would have an undue and unfair advantage. But as Davis’ estate is not a party to this proceeding, I have arrived at the opinion, with some hesitation I admit, that Looker was a competent witness. Wherefore, with the concurrence of the other judges, the judgment will be affirmed.