Fix race condition in test suite.