work on k-group tests