unit test for Semaphore

Just init the semaphore to zero.