unit tests for countdownlatch