Add unit test for #9920

Merges #10385
Don't deselect radio buttons in data-toggle; fixes #9920

Merges #10787
<3 @asselin for figuring out this combo of 2 patches for #9920; re-grunt