Randoms and other tests now passing.