semaphore tested