fix credit manager helper test