Fixes #7329 - Correctly validate HostConfigGroup

@tbrisker, here's an idea that I have to refactor the tests
https://github.com/isratrade/foreman/tree/1750