Improved the previous two unit tests and also added a unit test to verify waiting and signaling