Adding semaphore test program