unit-tests: Add a simple semaphore test