Added newInvoices tests