used junit temp folder rule in test for temp file