semaphore and countdownlatch test