ThrowForInvalidGroups: add unit test

This commit adds unit test for the |throwForInvalidGroups| function.

Tested: unit test passed

Signed-off-by: Nan Zhou <nanzhoumails@gmail.com>
Change-Id: I6c004dde1e3a27f60ee7de5cb1775940e19fffc8
2 files changed