Added basic tests for invoices