Merge "Fix isValid() condition for libsync tests"