testing the creation of invoices