Add LogCleanerIntegrationTest and fix issues.