controlling randomness in testing'