pass apply and invoices tests