Semaphore tests working