Created and tested Semaphore object