Implemented and updated groups operations and tests