Adds unit tests for groups