hardening: test group existence: changed from equality test to another test to make it work