Adds test to check for correct replicator state when prematurely stopping replication

Adds test to check for correct replicator state when prematurely stopping replication.