wait & signal test cases