Complete update of replication2_pg test for rtcloud

The replication2_pg tests rely on an intercept with a hardcoded leader node. With rtcloud, we have less flexibility in the hardcodedness of the node, and need a way of having a dynamic value used.