Fixed tests, renamed onsyncupdate to onSyncUpdate