unit test: Remove waitEvent from collector test