Section 3. That when any person, who may be duly elected to the office of constable and collector, shall neglect and refuse to qualify and act as such, he shall forfeit and pay therefor, the sum of twenty-five dollars, to be recovered before a justice of the peace, in the name of the commonwealth, the same as like sums are recovered in an action of debt, one half thereof shall go to the use of the informer, or prosecutor, and the other half to the use of the school district in which the offender shall reside; and in case of a vacancy in said office of constable, from any cause whatever, the court of quarter sessions of the said county of Cameron, or any two of the judges thereof, may, by writing, to be filed among the records of said court, appoint some suitable person to fill the vacancy until the next annual election; and the person so appointed shall give bond, as required by this act, and be subject to all the provisions thereof; and every constable and collector, so elected, or appointed, shall, before entering upon the duties of his office, take and subscribe an oath, before some officer in the county authorized, by law, to administer oaths and affirmations, to support the constitution of the United States, and of this state, and perform the duties of his office, as constable and collector, to the best of his ability, and without fear, favor, or partiality; which oath shall be filed with their bonds.