Added a test for the rng with generator