Add unit test for ordering using random_.