Added eventLoop() tests and docs.

Enhancement for #12