fixed tests to deal with new randomness