Add synchronize in the mock