adding tests for changes regarding ToggleSwitchControl.js