Notice of the filing of such petition must be given as provided by law on petition by the personal representative to sell lands for division or for the payment of debts, and testimony shall be taken and all other proceedings had and the sale, if ordered, shall be made as now provided by law for the sale of lands by personal representatives for the payment of debts.