clean code; added unit tests for Group class