enhance log module, add log_test