Updated the unit test for SimpleSemaphore.