Testing the sync functionality