Add more assert to check if credit and debit are equal