Convert test programs to not use libevent.