The RerunFormatter does not handle failures in background and scenario outline examples correctly

The RerunFormatter does not handle failures in background and scenario outline examples correctly.
I am working on it ...