added find_tenant_from cache function and associated unit tests