Add tests for Semaphore,BoundedSemaphore,Lock class