Got rid of while loop that wasn't needed in replicator_test.