Add iterator support
Ensure tests quits even if there is stuff on the event loop