my $branch_1 = $builder->build({ source => 'Branch' })->{ branchcode };
my $branch_2 = $builder->build({ source => 'Branch' })->{ branchcode };
-my $category = $builder->build({ source => 'Category' })->{categorycode};
+my $category = $builder->build({ source => 'Category' });
my $borrowers_count = 5;
my $borrowernumber = AddMember(
firstname => 'my firstname',
surname => 'my surname ' . $_,
- categorycode => $category,
+ categorycode => $category->{categorycode},
branchcode => $branch_1,
);
push @borrowernumbers, $borrowernumber;