There were some Thread.sleep() in the unit test that caused spureous failures. Replaced with TestUtils.NotWaitingForeverCondition.