AbstractToggleSwitch: test that checked appropriately updates the classList.