Added test random functions