better temp folder creation in tests