srand(time()) alone is never a good idea in tests, as it prevents reproduction of bugs. Use of rand() is a bad idea anyway, as it results in antipatterns everywhere. Std C++ RNG is far from perfect.
My attempt to switch to std C++ RNG hints at more lurking bugs in test.cc, so this is likely a sister issue to #28