Add ShouldSetBranchId and ShouldCreateBranchIfBranchIdIsSet tests