updated replication unit tests to correctly detect the transition from status=anything to status=stopped