Fixed failing randomize unit test.