Added random query- and testset generation.