unit tests for CountDownLatch

I would also test if the count is still 1.