Added random test generator.