Adds test to check for correct replicator state when prematurely stopping replication.
Merge pull request #34 from cloudant/32568-replicator-state-stopped-parity-with-ios

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