Switch inherits from CheckBox, tests refactoring