testing semaphore