Exceptions to answers for insufficiency are abolished. The test of sufficiency shall be made by a demurrer; if found insufficient, but amendable, the court may allow amendment on terms. If the amended or second answer is adjudged insufficient, the defendant may be examined upon interrogatories and committed until he answers them, or on motion of the plaintiff the court may strike out the answer and enter a decree for the plaintiff.