Section 25. The wife of a judge of probate may be a defendant in an action upon a bond given to him or to his predecessor in such office.