Fixed test, it  was not using the temp dir