Added documentation to helper functions in random_test unit.