Added tmp directory to store log file. Added method to cleanup log in debug_test.