Try a fix for broken unit test.
Inject some services into the various FileTreeElement implementations rather than reach across to FileSystems.default.