Removal of `resume` and `wait` in unit test.