wait for the servers to sync
fix a bunch of unit tests