Event-driven test_server using libev