Updated hostgroup test with Factory and added few -ve tests