Accomodate for fact that search ressource may contain None in tests