Added unit test for use count where payment has failed
See 6d4a42888b58948e376404778fcbbc6578dcb672