On the return of the summons before a justice of the peace, or on the day fixed for trial, in cases against nonresidents or parties not served with process, or in cases against unknown owners, the justice shall hear the cause. Any person making claim to the property described in the petition shall be admitted to defend as provided in Section 89-17-15 for cases in the circuit court, and the same mode of procedure shall be followed in the trial as is provided for the trial of civil actions before justices of the peace, under the general laws of the state, and judgment shall be rendered as hereinbefore provided in cases before the circuit court.