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

....