added unit tests for group