TotalOrderPartitions test

TotalOrderPartitions test