get invoices test working