All objections to the proceedings, including objections based on defects in the petition and defenses capable of determination as a matter of law, may be raised by motion to dismiss.
Acts 1991, No. 235, §7.