adding SystemRNG and somewhat cleaned-up tests