unit tests for CountDownLatch