minor fixes in replication tests