Added eventLoop() tests and docs.