some changes in ReplicationAPITest