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

- Fix tests in error on mysql, postgres, oracle