TST/BUG: Fix grouped_box_return_type

Closes #7254.