There should probably be one of these for each loop implementation instead of using the loop factory. See how the event loop tests do this.