replace groups object to be a set in tests