yield hanging deferreds
fix tests