concatenate the allowed_hosts attribute to the list of monitored hosts if it is defined after the search so that both can be leveraged at once
change a spec so that it ensures a search with no results does not raise an error