finished tests for PeerSync.js