Handle race when adding tests to the queue.