Added sync to test