Added tests for ButtonGroup.