Small fix in the tests.

The test semaphore should sometimes be empty.