related to #447:
- added test to reproduce and check grouping issue