Add test for setting with wrong state
Wrap torch.randomSeed and .[gs]etRNGState