Added semaphore test