test: group by how many outputs