Fixing tests folder deletion problem