Fixed unit test to use same random sequence