update branch_factory test