using TemporaryFolder @Rule
splitted into two tests