Update dependencies; add a test to verify setting of 'replica' flag during sync-pull