This test is weird. It makes the production code more complicated (by exposing more API) and it doesn't actually catch the real race conditions in the code. What kind of regression will this catch?