unit test for Group
remove dead code