added a payment test for invoices