Add group handling helpers to the error helper method, and add tests for it. Refs #160