move GenRandomPars outside technical, and add some more tests