Improve tests: temp directory is created/deleted for tests.