Add unittest to ensure RNGs can be allocated with 'scoped'

This patch also tweaks the unittest documentation a bit to
clarify the rationale and limitations of the different tests.