Updated random generation tests