fixed integration test that ensures all events received