Adds tests for CDTReplicator.state when a local datastore is deleted during replication.

This test currently fails because CDTReplicator.state == CDTReplicatorStatusComplete,
when it should probably be something else (Error, with appropriate error message).