Refactor IDL tests to use JUnit TemporaryFolder Rule.