added testRandomness method