test for syncing the two functions