Added tests for syncing.