The defendant may file a demurrer or answer on oath to the petition, or both. The court may permit amendments of the pleadings as in other cases. History Code 1950, § 8-707; 1977, c. 617.