testing semaphores