Sync List function updated and new test added