Add test for Semaphore.wait().
Bugfix: Semaphore.wait() is always instant.
Merge branch 'DanielBlack-bug/wait'

* DanielBlack-bug/wait:
  Bugfix: Semaphore.wait() is always instant.
  Add test for Semaphore.wait().