Added tests for groups.