Revised replicated log tests to use TemporaryDirectoryTest to ensure
temp files are properly cleaned up.

From: Jiang Yan Xu <yan@jxu.me>
Review: https://reviews.apache.org/r/14544