Added tests for groupings.