add pending() method for all event types
test running event loop in parent and child
allow a 0.01s difference to make tests pass more reliably
sprinkle some pending() checks
document pending() method