Fixed tests that broke with changes to srand(1)