fixing log_path and testing