BS-9304 : [6.3] Temporary folder never get cleared

- Fix a test to delete the tempory file after the end on the test