Helper functions in random_test unit are compelted.
A few real tests has to be added.