Params search works with nested hostgroups

Tests for search in params inherited from hostgroups

Use subtree ids to avoid adding parent id on inherited params search