Add tests for invoices