test: add some tests to document the behaviour of group_outputs function.
Merge pull request #499 from pooya/develop

test: add some tests to document the behaviour of group_outputs function...