Added grouped output, usage example and unit test

Refs #10264