Added missing bug fixes from CT
adding tests for changes regarding ToggleSwitchControl.js
Merge pull request #845 from dogoku/develop

Added missing CT bug fixes to ToggleSwitchControl.js