Bump criterion version.
Write tests for event loop functionality.