Updated hostgroup test with Factory and added few -ve tests
Merge pull request #1170 from sghai/hostgroup

Updated hostgroup test with  Factory