Switch control in tests

Introduced a new parameter in the SwitchContextManager to pass a dictionary with switches. This enables the user to set more complicated switches in unittests, e.g.: `parent:child`.