Handle race when adding tests to the queue.
Merge pull request #36 from w3c/jgraham/test_queue_race

Handle race when adding tests to the queue.