All parties in interest must have at least 10 days' notice of the time and place set for the hearing of such application; and when infants or persons of unsound mind are parties, and have no general guardians, guardians ad litem must be appointed to represent them; and if any of the parties in interest are nonresidents, they may be made parties in the same manner, and to the same extent as is done when property in the hands of an executor or administrator is to be divided or distributed.