fix random number generator, remove old tests