unit test for the replication count fix