Tests: Fixes what I believe is a bug in tests.

The tests fail if the 'temp' folder is not created.