more dynamic InvoiceDefinitionTest