Improved test random distribution, fixed test_t ctor to init next pointer