Improve John Doe tests.
Add tests for RandomNumberGenerator.