created two versions of random search for tests

with/without internal maximum number of steps
added maximum runtime stop criterion