Added multi-thread wait test case