allocate and fix counters update from test and group
code+comment test.them
code+comment test.type()
type() and them() already done