Fixed race condition test failure.