added error event to Mojo::IOLoop::Delay
small optimization
fixed a few typos in tests