libevent test cases