See CoreFeature#cleanupSession, the following code does not trigger the OrphanVersionRemoverListener:
session.removeChildren(new PathRef("/"));
Therefore some tests (eg. TestAuditFileSystemChangeFinder, see NXP-15421) will log the error below if ever versions have been created within the test:
ERROR [CoreFeature] Fail to cleanupSession, repository will not be empty for the next test.