Work around race condition in tests

Added a "non-working test" that documents the problem. Don't
know how to fix it yet.