add tests + fix for console output for groups