tests for invoice and invoice_repo