Fix race condition causing test failure when run standalone.