Now using a temp directory for tests