Adding JUnit rules to create temp dir

Related to #808. With this changes, we guarantee file exclusions before testing.

Since this is not affect dist artifacts, I think that can merged without wait new release.