Hostgroup add ancestors fix

Test duplicate users in inherited hostgroup

Test helper to setup users with operations (Dominic)