Add test code for rand! with specified RNG

Adds a few tests that verify rand! executes when it's given
a specific RNG.