Added 'wait' testcase.