Moved sync to separate listening target, added online/offline sync test and cloning defaultState