added customer invoices method and test