making unittest to run with stable generated random numbers