Add regression test for grouping by 3 columns.

Related to issue #215. Review by @cvogt