Made tests deterministic

All calls to Random use a Random object with a fixed seed now. Until we
can integrate proper unit test randomization, we're going to keep tests
deterministic for ease of debugging.