create tests and methods for invoice find_by/all