added find by for invoice and tests for find by tests