unit tests for PGLog::proc_replica_log

A series addressing the following:

    The tests covers 100% of the LOC of proc_replica_log. It is broken down
    in 7 cases to enumerate all the situations it must address. Each case
    is isolated in a independant code block where the conditions are
    reproduced.

    add constness to PGLog::proc_replica_log