expand ABTesting

add idToGroup and groupToId, finish inGroup