this does not come from this bug, but this is really not reliable to use setTimeout in tests;

Can you try to use sinon's fake timers instead, at least only in your suite ?