Fixed retry behaviour to avoid JUnit seeing retries as multpile tests