Fix syncing bug, add more newbridge tests.