test for libevent