Added list and other test helper methods in RandomExtensions.