test sync and commit