tests: call srand() before running each test.

Include the seed in the output.