libevent: add test