Changed test to use temp folder