support for setting random seed, added tests based on benchmark25