测试libevent