Update test case for multiple group name validation

The group validation function always returns true, regardless of whether or not the groups are valid. This test case adds other permutations.