Whenever any execution issued by the proper authority of the city for taxes, licenses, assessments, fines, forfeitures or any other charge or demand due the city, shall be levied upon any property, the defendant in fi. fa. shall have the right to file an affidavit denying that the whole or any part of such execution is due and the reason same is not due, and stating what amount is admitted to be due (which amount so admitted shall be paid before said affidavit shall be received, and said affidavit shall be received for the balance) with bond and security for the forthcoming of the property levied upon, if same is personal property; and said affidavit so presented shall be returned to the justice court or superior court of the county and there tried and the issue determined as in cases of other affidavits of illegality returnable to said court, subject to all the pains and penalties provided for in cases of illegality or delay. Such affidavits of illegality and the procedures in reference thereto being governed by the rules and laws governing such matters in the courts of the State.