write test for invoice.charge
complete transaction.create method