testing array for hostgroups