fixed integration tests for invoices