Add test for event wait lists handling