Add unit test for sort algothrim.