tevent: add a test that frees wrapper_ev with pending events