`config` should be strictly of type `object`.
unit test of `toggleView` using single parameter
Merge branch 'toggleview-fix' into dev-master