fix credit test