fix randomness of some RD tests