Make log a default argument in protocol and dump_tests