Make and test partion procedure.