If, before or after the return of the execution, the plaintiff shall file in the clerk’s office from which the execution issued, or before the justice of the peace who issued it, as the case may be, an affidavit that he verily believes the allotment made to the debtor by the freeholders or householders to be incorrect, and the land so allotted by them, or some part of it, to be liable to sale under his execution, a summons shall be issued by the clerk or justice of the peace for the defendant, returnable to the next term of the court, requiring him to appear; and, on return of the summons executed, an issue shall be made up under the direction of the court and tried, as to whether the allotment were correctly and fairly made or not, and, if not, what part of the land ought to be sold under the execution; and, if it be found that any part of the land is subject to be sold, a venditioni exponas shall be issued for the sale of such part, and the plaintiff shall have judgment for costs; but if the issue be found for the defendant, he shall recover costs of the plaintiff.