Add debit resource field and tests