add group tests and impl

Signed-off-by: Alexandre Terrasa <alexandre@moz-code.org>