Fix random in test.