added test for and implementation of finding all invoices by created and updated dates