simple test for semaphore