I haven't been able to figure out why, but I get occasional failures (50%) with this test with gradle

     expected:<2> but was:<1>

I tried adding a small `sleep()` but it didn't help.

I haven't figured out what the problem is yet.