DigitGroup class & tests