Speed up unit tests that need to wait for a signal
Code review feedback
Merge pull request #143 from Metaswitch/signal_handler_pause2

[Reviewer: Alex] Speed up unit tests that need to wait for a signal