Fixing sync tests