Add master-replica tests.